#include <QtGui/QApplication>
#include "mainwindow.h"
#include "util/define.h"
#include <QTextCodec>
#include "QDateTime"
#include "stdio.h"
#include "util/NavFile.h"
#include "config/common.h"
#include "form/chinaraweditdialog.h"
int main(int argc, char *argv[])
{

    QTextCodec *tc = QTextCodec::codecForLocale();
    QTextCodec::setCodecForCStrings(tc);
  //  QTextCodec::setCodecForLocale(tc);
    QTextCodec::setCodecForTr(tc);

    QApplication a(argc, argv);
    MainWindow w;
    w.show();
//    ChinaRawEditDialog d;
// d.setNavName("E:\\data\\config\\3Lines(0-60s) .nav");
//    d.exec();
//    FILE *fp = fopen("D:\\OBSDATA\\12\\DHOBS22-1.sac","rb");
//    if(fp!=NULL)
//    {
//    Sac_trace  *trace =(Sac_trace*)malloc(sizeof(Sac_trace));
//    fread(trace, sizeof(Sac_trace), 1, fp);
//    float data;
//    for(int i=0;i<100;i++)
//    {
//        fread(&data,4,1,fp);
//        qDebug()<<data;
//    }
//    fclose(fp);
//}

    return a.exec();
}
